//
//  WithdrawSettingViewController.m
//  BaseFrame
//
//  Created by ENERGY on 2018/5/29.
//  Copyright © 2018年 com.mxh. All rights reserved.
//

#import "WithdrawSettingViewController.h"

@interface WithdrawSettingViewController ()
@property (nonatomic, strong)UISwitch * switchBtn;
@end

@implementation WithdrawSettingViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    //铺放空间
    [self setUpControllers];
}

- (void)setUpControllers{
//    标题
    UILabel * titleLab = [[UILabel alloc] initWithFrame:CGRectMake(15/WIDTH_5S_SCALE, 15/WIDTH_5S_SCALE, 60/WIDTH_5S_SCALE, 15/WIDTH_5S_SCALE)];
    titleLab.text = @"自动提现";
    titleLab.font = DEF_FontSize_16;
    titleLab.textAlignment = NSTextAlignmentLeft;
    titleLab.textColor = [UIColor blackColor];
    [self.view addSubview:titleLab];
//    按钮
    self.switchBtn = [[UISwitch alloc] initWithFrame:CGRectMake(SCREEN_WIDTH - 30/WIDTH_5S_SCALE - 20/WIDTH_5S_SCALE, 0, 30/WIDTH_5S_SCALE, 19/WIDTH_5S_SCALE)];
    self.switchBtn.centerY = titleLab.centerY;
    [self.view addSubview:self.switchBtn];
//    分割线
    UIView * borderView = [[UIView alloc] initWithFrame:CGRectMake(titleLab.left, titleLab.bottom + titleLab.top, SCREEN_WIDTH - 2*titleLab.left, 1)];
    borderView.backgroundColor = getColor(@"eeeeee");
    [self.view addSubview:borderView];
    //提现说明标题
    UILabel * instructionLab = [[UILabel alloc] initWithFrame:CGRectMake(titleLab.left, borderView.bottom + titleLab.top, 100/WIDTH_5S_SCALE, titleLab.height)];
    instructionLab.text = @"自动提现说明";
    instructionLab.font = DEF_FontSize_16;
    instructionLab.textAlignment = NSTextAlignmentLeft;
    instructionLab.textColor = getColor(@"686868");
    [self.view addSubview:instructionLab];
}

@end
